package com.edou.system.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.edou.base.page.PageResult;
import com.edou.system.dto.SysEmailCondition;
import com.edou.system.entity.SysEmail;

public interface ISysEmailService {

	/**
	 * 保存Email信息
	 * 
	 * @param email
	 *            邮件实体
	 */
	public void add(SysEmail email);
	
	public List<SysEmail> listTenNoSendMail();
	
	public void updateEmailState(@Param("id")String id,@Param("state")Integer state);

	/**
	 * 查询区间数据
	 * @param bounds
	 * @param condition
	 * @return
	 */
	
	void listSysEmailByPage(PageResult<SysEmail> pageResult,SysEmailCondition condition);
	
	/**
	 * 根据ID集合批量删除
	 * @param ids ID集合
	 */
	void delByIds(String[] ids);
}
